package com.assets.room.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

import java.io.Serializable;

@Entity(tableName = "asset_check")
public class Check implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 盘点单号
     */
    @ColumnInfo(name = "check_id")
    @PrimaryKey()
    private Long checkId;

    /**
     * 盘点标识
     */
    @ColumnInfo(name = "check_flag")
    private Long checkFlag;

    /**
     * 计划范围
     */
    @ColumnInfo(name = "plan_range")
    private String planRange;

    /**
     * 实际范围
     */
    @ColumnInfo(name = "concrete_range")
    private String concreteRange;

    /**
     * 盘点时间
     */
    @ColumnInfo(name = "check_date")
    private String checkDate;

    /**
     * 盘点状态
     */
    @ColumnInfo(name = "status")
    private String status;

    /**
     * 创建人
     */
    @ColumnInfo(name = "create_user")
    private String createUser;

    /**
     * 创建时间
     */
    @ColumnInfo(name = "create_date")
    private String createDate;

    /**
     * 备注
     */
    @ColumnInfo(name = "remark")
    private String remark;

    @ColumnInfo(name = "submit_time")
    private String submitTime;

    @ColumnInfo(name = "is_flag")
    private String isFlag;

    @Ignore
    public Check() {
    }

    public Check(Long checkId, Long checkFlag, String planRange,
                 String concreteRange, String checkDate,
                 String status, String createUser,
                 String createDate, String remark,
                 String isFlag) {
        this.checkId = checkId;
        this.checkFlag = checkFlag;
        this.planRange = planRange;
        this.concreteRange = concreteRange;
        this.checkDate = checkDate;
        this.status = status;
        this.createUser = createUser;
        this.createDate = createDate;
        this.remark = remark;
        this.isFlag = isFlag;
    }

    public String getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(String submitTime) {
        this.submitTime = submitTime;
    }

    public Long getCheckId() {
        return checkId;
    }

    public void setCheckId(Long checkId) {
        this.checkId = checkId;
    }

    public Long getCheckFlag() {
        return checkFlag;
    }

    public void setCheckFlag(Long checkFlag) {
        this.checkFlag = checkFlag;
    }

    public String getPlanRange() {
        return planRange;
    }

    public void setPlanRange(String planRange) {
        this.planRange = planRange;
    }

    public String getConcreteRange() {
        return concreteRange;
    }

    public void setConcreteRange(String concreteRange) {
        this.concreteRange = concreteRange;
    }

    public String getCheckDate() {
        return checkDate;
    }

    public void setCheckDate(String checkDate) {
        this.checkDate = checkDate;
    }

    public String getStatus() {

            return status;

    }

    public void setStatus(String status) {


            this.status = status;


    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String isFlag() {
        return isFlag;
    }

    public void setFlag(String flag) {
        isFlag = flag;
    }

    @Override
    public String toString() {
        return "Check{" +
                "checkId=" + checkId +
                ", checkFlag=" + checkFlag +
                ", planRange='" + planRange + '\'' +
                ", concreteRange='" + concreteRange + '\'' +
                ", checkDate='" + checkDate + '\'' +
                ", status='" + status + '\'' +
                ", createUser='" + createUser + '\'' +
                ", createDate='" + createDate + '\'' +
                ", remark='" + remark + '\'' +
                ", isFlag=" + isFlag +
                '}';
    }
}
